package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.Order;
import com.fenxiangtech.mall.model.qc.OrderQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface OrderDAO{

    int insertOrder(Order order);

    int updateOrder(Order order);

    List<Order> listOrder(OrderQC order);

    Long countOrder(OrderQC order);

    int insertBatch(@Param("list") List<Order> orders);

    int deleteOrderById(Long id);

}